// 初始化LeanCloud的SDK
const Cloud = require('../lib/av-core-min.js');
const adapters = require('../lib/leancloud-adapters-weapp.js');
const {BASE,ID,KEY} = require('../config/index')
Cloud.setAdapters(adapters);  //将核心包与小程序专属补丁包进行结合
Cloud.init({
    appId: ID,
    appKey: KEY,
    serverURL: BASE
});